﻿@model Website.Models.Category

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Category</legend>

    <div class="display-label">Tên Danh Mục SP</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CategoryName)
    </div>
    
    @if(Model.ParentCategoryID.HasValue)
    {
        <div class="display-label">Danh Mục SP Cha</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ParentCategory.CategoryName)
        </div>    
    }
    
    <div class="display-label">Loại KH</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Gender)
    </div>

    <div class="display-label">Mã Danh Mục SP</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Code)
    </div>

    <div class="display-label">Hiển Thị Ngoài Trang Chủ</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Display)
    </div>

    <div class="display-label">Thứ Tự</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Index)
    </div>
</fieldset>
@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
